# -*- coding: utf-8 -*-
import logging
from odoo import models, fields, api, _

_logger = logging.getLogger(__name__)


class ZfySale(models.Model):
    _inherit = "sale.order"

    payment_type = fields.Many2one('partner.categ', string=u'收款方式',
                                   domain="[('categ', '=', 'payment_type')]",
                                   related='partner_id.payment_type',
                                   store=True, copy=True)
